package com.gzlg.hospital.dao;

import com.gzlg.hospital.pojo.*;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Mapper
@Repository

public interface DoctorDao {
    //  通过id查询医生
    public Doctor  getDoctorById(Integer id);
    //通过账户查找医生
    public Doctor getDoctorByAccount(String account);
    //护士查看全部待处理挂号信息
    public List<Registration> listRegistration();
    //医生处理自己要处理的挂号
    public List<Appointment_details> listAppointmentDetailsByDoctorId(Integer doctor_id);
    //医生查看全部病历
    public List<Medical_record> listMedicalRecord();
    //医生查看指定患者全部病历
    public List<Medical_record> listMedicalRecordByPatientId(Integer patient_id);
    //医生查看指定患者指定挂号的处理
    public List<Appointment_details> listAppointmentDetailsByRegistrationIdDoctorId(Map<String, Integer> map);
    //查找患者
    public Patient getPatientById(Integer patient_id);
    //查找指定挂号
    public Registration  getRegistrationById(Integer registration_id);
    //护士添加挂号信息
    public Boolean updateRegistration(Map<String, Object> map);
    //添加医生待处理
    public Boolean addAppointmentDetails(Appointment_details appointment_details);
    public List<Consultation_room> RoomNyDepartment(String department);
    //有复诊时间
    public Boolean  addMedicalRecord(Medical_record medical_record);
    //无复诊时间
    public Boolean  addMedicalRecord2(Medical_record medical_record);
    //修改病历处理状态
    public  Boolean updateAppointmentDetails(Integer registration_id);
    //修改挂号状态
    public  Boolean updateRegistrationStatus(Integer id);
}
